package com.memo4android.ui;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.View.OnLongClickListener;

import com.memo4android.ModifyFolderActivity;
import com.memo4android.ModifyTodoList;
import com.memo4android.model.Dossier;
import com.memo4android.model.ItemTodoList;

public class TodoListLongClickListener implements OnLongClickListener {
	private ItemTodoList Tdl;
	private Context context;
	private Activity activity;
	
	public TodoListLongClickListener(Context context, ItemTodoList ITdl){
		this.Tdl = ITdl;
		this.context = context;
		this.activity = (Activity) context;
	}
	public boolean onLongClick(View v) {
		// TODO Auto-generated method stub
		
		Intent intent = new Intent(context, ModifyTodoList.class);
		intent.putExtra("TodoListName", Tdl.getTitre());
		activity.startActivity(intent);
		
		return false;
	}
}
